function reducer2(state={name:'blue', age:18},action){
    console.log(action.type)
    switch(action.type){
        case 'SET_NAME1':
        return{
            ...state,
            name:action.name
        }
        default:
        return state;
    }
    return state
}

export default reducer2